import request from './request'
// 注册 +修改
export const saveOrUpdate = (params) => request.put('/gongyi/user/saveOrUpdate', params);
//状态更改
export const changeStatus = (params) => request.post(`/gongyi/user/status?id=${params.id}&status=${params.status}`)
// 分页查询
export const getMemberList = (params) => request.get('/gongyi/user/page', {params});
//权限更改
export const changeRole = (params) => request.post('/gongyi/user/role', params);
// 发布权限更改
export const changePub = (params) => request.get(`/gongyi/user/changePub?id=${params.id}&pub=${params.pub}`);
//删除
export const deleteById = (ids) => request.get(`/gongyi/user/delete?ids=${ids}`)